package com.example.cloud.clients;

import com.example.cloud.model.dto.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by wangtao on 2018/3/7.
 */
@FeignClient(name = "auth-center")
public interface AuthFeignClient {

    @RequestMapping(value = "/authorized", method = RequestMethod.POST)
    public Result authorized(@RequestParam("username") String code, @RequestParam("password") String sign);

    @RequestMapping(value = "/getServiceList", method = RequestMethod.POST)
    public Result getServiceList(@RequestParam("clientId") Long clientId);
}
